package kr.hkit.androidcomplete01.ch13;

import kr.hkit.androidcomplete01.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

public class ProgressTitle2 extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); //원형
		setContentView(R.layout.ch13_progresstitle2);
	}
	
	public void mOnClick(View v) {
		switch(v.getId()) {
		case R.id.start:
			setProgressBarIndeterminateVisibility(true);
			break;
		case R.id.stop:
			setProgressBarIndeterminateVisibility(false);
			break;
		}
	}
}
